package shape;

import java.util.Random;

public class Main {
    public static void main(String[] args) {
//        Shape shape;// 抽象的父类对象  只能指向子类的实例
//        // 里氏替换原则  父类对象 可以指向 子类实例
//        shape = new Circle(5);
//        shape.calcArea();
//
//        shape = new Triangle(10,8);
//        shape.calcArea();
//
//        shape = new Rectangle(8,7);
//        shape.calcArea();
//          Circle circle = new Circle(3);
        System.out.println(Circle.PI);
//        Circle.pi = 3.1415926;
        System.out.println(Circle.PI);
//        Circle circle1 = new Circle(5);
//        Circle circle2 = new Circle(8);
//        Circle.pi = 3.1415926;
//        System.out.println(circle1.pi);
//        System.out.println(circle2.pi);
        StringBuffer s1 ;
        Random random;
    }
}
